package com.sisi.common;

public class ObjectUtils {
	
	public static <T> T requireNotNull(T obj) {
		if(null == obj){
			throw new NullPointerException();
		}else{
			return obj;
		}
		
	}
	
	public static void requireNotEmpty(String str){
		if(null == str || "".equals(str.trim())){
			throw new IllegalArgumentException("The argument " + str + "is empty");
		}
	}
}
